define([ "PDUtilDir/grid", "PDUtilDir/searchBlock" ], function(Grid,
		SearchBlock) {

	function init(searchObj) {
		SearchBlock.init('searchBlockId');
		// 初始化
		return Grid({
			id : "CustomerHistoryGirdDivId",
			pageSize : 10,
			index : true,
//			multi : true,
			pagination : true,
			cache : false,
			layout : [ {
				name : "部门名称",
				field : "deptName",
				sort : true
			}, {
				name : "联系人",
				field : "personName",
				sort : true
			}, {
				name : "联系电话",
				field : "personPhone",
				sort : true
			}, {
				name : "费用",
				field : "cost"
			}, {
				name : "开始时间",
				field : "startTime"
			}, {
				name : "结束时间",
				field : "endTime"
			} ],
			toolbar : [ {
				name : "查询",
				icon : "fa fa-search",
				callback : function(event) {
					searchObj.run();
				}
			} ],
			data : {
				type : 'URL',
				value : getServer()
						+ '/flea/hclv/customer/pay/record/selectAll.htmls'
			}
		});
	}
	return {
		init : init
	}
});
